CXXFLAGS=-I/usr/include -Igenerated -I. -fPIC
LDFLAGS=-L/usr/lib
LDLIBS=-lIce -lIceUtil

all: RobotServer

RobotServer: generated/Robots.o RobotI.o RobotFactoryI.o
RobotServer.o: generated/Robots.h RobotI.h RobotFactoryI.h

generated/%.h generated/%.cpp: ../slice/%.ice
	slice2cpp --output-dir generated -I/usr/share/slice -I../slice $<

clean:
	rm -rf generated/* db/*
	rm -f *.o *~ *.pyc RobotServer
